package com.situ.gym.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.gym.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.gym.pojo.query.UserQuery;
import com.situ.gym.pojo.vo.DayCountVO;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Guan
 * @since 2025-08-28
 */
public interface UserMapper extends BaseMapper<User> {

    IPage<User> list(IPage<User> page, UserQuery userQuery);

    User selectByName(String name);

    void deleteAll(Integer[] ids);

    List<DayCountVO> selectUserCount(Date date);
}
